package com.hdax.dm.rest;

import com.hdax.dm.common.config.api.PayTradeControllerApi;
import com.hdax.dm.entity.pay.DmTrade;
import com.hdax.dm.service.TradeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class TradeRestService implements PayTradeControllerApi {

    @Autowired
    private TradeService tradeService;

    @Override
    public Integer payTrade(DmTrade trade) {
        return tradeService.payAdd(trade);
    }
}
